package com.yusys.pattern.mode.single;

public class Emperor {
    private static Emperor emperor = new Emperor();

    //静态方法中返回静态变量
    public static Emperor getInstance(){
        return emperor;
    }

    //皇帝发话了
    public static void say(){
        System.out.println("我就是皇帝某某某....");
    }

    public void sing(){
        System.out.println("sing....");
    }

}
